package com.manong.bookstore.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.manong.common.utils.PageUtils;
import com.manong.bookstore.user.entity.UserEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 
 *
 * @author cyq
 * @email 465447222@qq.com
 * @date 2021-01-27 21:34:32
 */
public interface UserService extends IService<UserEntity> {

    PageUtils queryPage(Map<String, Object> params);
    
    Integer register(UserEntity user);
    UserEntity login(String ID, String password, String checkColumn);
    boolean updateInfo(String userId, String name, String value);

    void addPoint(Integer userId, BigDecimal point);
    void delPoint(Integer userId, BigDecimal point);
}

